module.exports = {
    errTimes: 10000,
    log4js: {
        appenders: [
            { type: 'console' }, {
                category: 'logFile',
                type: 'datefile',
                filename: './logs/log',
                alwaysIncludePattern: true,
                pattern: '_yyyyMMdd.log'
            }
        ]
    },
    dbCfg: {
        user: 'sa',
        // password: 'Ads-320ywvn_9ksd8WisOk',
        // server: '10.174.11.11',
        password: '1',
        server: 'localhost', 
        // password: 'Hzyl2017',
        // server: 'oa.njhsnn.com',
        // port: 46813,
        port: 1433,
        database: 'SFDASpider',
        requestTimeout: 15 * 10000,
        pool: {
            min: 2,
            max: 5,
            idleTimeoutMillis: 30 * 1000
        }
    },
    reqOpts: {
        method: 'POST',
        encoding: 'utf-8',
        timeout: 5 * 1000,
        headers: {
            'Accept': '*/*',
            'Accept-Language': 'zh-CN',
            'Cache-Control': 'no-cache',
            //'Connection': 'keep-alive',
            'Content-Type':'text/html;charset=gb2312',
            'Pragma': 'no-cache',
            'Host': 'appcfda.drugwebcn.com',
            'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 1_312_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3088.3 Safari/537.36',
            'X-Requested-With': 'XMLHttpRequest',
        }
    }
}